[quality] fix: correct 4 drifted test assertions in _shared/__tests__#19749
[quality] fix: correct 4 drifted test assertions in _shared/__tests__#19749kubestellar-hive[bot] wants to merge 1 commit into
Conversation
✅ Deploy Preview for kubestellarconsole ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!
This is an automated message. |
486ed34 to
e342269
Compare
ZachDreamZ
left a comment
There was a problem hiding this comment.
4 fixes all look correct:
- analytics-dashboard: mockImplementation avoids Response body double-consumption
- core-utils: mockStoreList setup needed to reach store.set path; mockRejectedValueOnce x2 matches expected retry count
- fetchWithTimeout: 204 null-body per HTTP spec
- rate-limit: maxRequests=5 matches actual blob count across pages
CI failures are pre-existing (color contrast, Playwright flakiness) — unrelated to test assertion fixes. LGTM.
|
@ZachDreamZ: changing LGTM is restricted to collaborators DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
1. analytics-dashboard: Return fresh Response per call to prevent 'Body already read' error from parallel runReport() invocations 2. fetchWithTimeout: Use null body for HTTP 204 (null-body status) 3. core-utils: Add explicit mockStoreList reset in 'fails closed' test to prevent implementation leak from previous test via vi.clearAllMocks() 4. rate-limit: Change maxRequests from 4 to 5 so 4 paginated entries don't trigger >= threshold (tests counting, not limiting) Also fixes unhandled rejection from persistent mockRejectedValue by using mockRejectedValueOnce for the exact retry count. Signed-off-by: Quality Agent <quality-agent@kubestellar.io>
e342269 to
94bf728
Compare
Fixes 4 persistent test failures exposed by #19741. PR #19748 was insufficient.
Fixes #19745
Filed by quality agent (hold-gated mode).